home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 4 / developer source - volume 4.iso / dobbs / jul95 / haak1t2b.gif < prev    next >
Graphics Interchange Format  |  1996-06-11  |  151KB  |  552x730  |  4-bit (16 colors)
Labels: text | menu | font | screenshot | number
OCR: Input: AX = 4F06h VBE set/get logical scan-line length BL = 00h Set scan-line length in pixels = 01h Get scan-line length = 02) Set scan-line length in bytes = 0.3h Get maximum scan-line length CX= If BL= 00h desired width in pixels If BL= 02h desired width in bytes (ignored for get functions) Output: AX = VBE return status BX = Byles per scan line CX- Actual pixels/scan line (truncated to nearest complete pixel) DX Maximum number of scan lines Inout: AX = 4F07h VBE set/get display start control BH = 00h Reserved and must be 00h BL = 00h Set display start = 01h Get display start = 80h Set display start during vertical retrace CX - First displayed pixel in scan line (set display start only) DX - First displayed scan line (set display start only) Output: AX= VBE return status BH = 00h reserved and will be 0 (get display start only) CX- First displayed pixel in scan line (get display start only) DX- First displayed scan line (get display start only) Input: AX - 4F08h VBE set/get palette format BL = 00h Set DAC palette format = 01h Get DAC palette format BH= Desired bits of color per primary (set DAC palette format only) Output: AX = VBE return status BH - Current number of bits of color per primary Input: AX = 4F09h VBE load/unload palette data BL = 00h Set palette data = 01h Got palette data = 02) Set secondary palette data = 03h Get secondary palette data = 80h Set palette data during vertical retrace with blank bit on CX- Number of palotto registers to update DX = First palette register to update ES:DI = Table of palette values (see below for format) Output: AX = VBE retum status Format of palette values: Alignment byte, red byte, green byte, blue byte input: AX = 4FOAh VBE 2.0 protected-mode interface BL - 00h Retum protected-mode table Outout: AX = Status ES = Real-mode segment of table Offset of table CX = Length of table, including protected-mode code in bytes (for copying purposes) *All other registers are preserved.